﻿@model Stamp_For_Africa_Version_2.ViewModels.StampIndexFormViewModel


<br/>
<div align="center">

<fieldset class="filterfieldset">
<legend>Filters</legend>
	@using (Html.BeginForm("Index", "ManageStamps", FormMethod.Post, new { id = "TheForm" }))
 { 
	   			
			<p valign="top" align="center" style="display: inline-block">
				Country
				
				@Html.DropDownListFor(x => x.SelectedCountryId, ViewBag.CountryList as IEnumerable<SelectListItem>, "--Select One--",
							new
							{
								onchange = "document.getElementById('TheForm').submit();"
							})
			</p>
			<p valign="top" align="center" style="display: inline-block">
				Artist
				@Html.DropDownListFor(x => x.SelectedArtistId, ViewBag.ArtistList as IEnumerable<SelectListItem>, "--Select One--",
							new
							{
								onchange = "document.getElementById('TheForm').submit();"
							})
			</p>
			<p valign="top" align="center" style="display: inline-block">
				Category
				@Html.DropDownListFor(x => x.SelectedCategoryId, ViewBag.CategoryList as IEnumerable<SelectListItem>, "--Select One--",
							new
							{
								onchange = "document.getElementById('TheForm').submit();"
							})
			</p>
			<p valign="top" align="center" style="display: inline-block">
				Issue Type
				@Html.DropDownListFor(x => x.SelectedIssueTypeId, ViewBag.StampTypeList as IEnumerable<SelectListItem>, "--Select One--",
							new
							{
								onchange = "document.getElementById('TheForm').submit();"
							})
			</p>	 
			<p valign="top" align="center" style="display: inline-block">
				First Issue

				@Html.DropDownListFor(x => x.FirstIssue, ViewBag.FirstIssueList as IEnumerable<SelectListItem>, "--Select One--",
							new
							{
								onchange = "document.getElementById('TheForm').submit();"
							})


			</p>		 

		
 }
 </fieldset>
 </div>
 